// vite.config.js
import { defineConfig } from "file:///G:/syh/react/reactui/node_modules/vite/dist/node/index.js";
import react from "file:///G:/syh/react/reactui/node_modules/@vitejs/plugin-react/dist/index.mjs";
import path from "path";
import postcss from "file:///G:/syh/react/reactui/node_modules/rollup-plugin-postcss/dist/index.js";
import postcsspxtoviewport8plugin from "file:///G:/syh/react/reactui/node_modules/postcss-px-to-viewport-8-plugin/lib/index.js";
var __vite_injected_original_dirname = "G:\\syh\\react\\reactui";
var vite_config_default = defineConfig({
  base: "./",
  plugins: [
    react()
  ],
  css: {
    preprocessorOptions: {
      less: {
        additionalData: `@import "${path.resolve(__vite_injected_original_dirname, "src/assets/styles/var.module.less")}";`,
        javascriptEnabled: true
      }
    },
    postcss: {
      plugins: [
        postcsspxtoviewport8plugin({
          unitToConvert: "px",
          // 需要转换的单位，默认为"px"
          viewportWidth: 750,
          // 
          // viewportHeight: 1080,// 视窗的高度，对应的是我们设计稿的高度
          unitPrecision: 6,
          // 单位转换后保留的精度
          propList: [
            // 能转化为vw的属性列表
            "*"
          ],
          viewportUnit: "vw",
          // 希望使用的视口单位
          fontViewportUnit: "vw",
          // 字体使用的视口单位
          selectorBlackList: ["el-switch", "is-checked"],
          // 需要忽略的CSS选择器，不会转为视口单位，使用原有的px等单位。cretae
          minPixelValue: 1,
          // 设置最小的转换数值，如果为1的话，只有大于1的值会被转换
          mediaQuery: false,
          // 媒体查询里的单位是否需要转换单位
          replace: true,
          // 是否直接更换属性值，而不添加备用属性
          exclude: /(\/|\\)(node_modules)(\/|\\)/
          // 忽略某些文件夹下的文件或特定文件，例如 'node_modules' 下的文件
        })
      ]
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src"),
      extensions: [".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
    }
  },
  server: {
    proxy: {
      "/api": {
        target: "http://16.163.107.8:1335",
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/api/, "")
      }
    }
  }
});
export {
  vite_config_default as default
};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